import layout from '@/components/layout/index'

const routes = [
        {
            path: '/login',
            name: 'login',
            meta: {
                title: "登录"
            },
            component: () => import('@/views/login/login.vue')
        },

        {
            path: '/register',
            name: 'register',
            meta: {
                title: "注册"
            },
            component: () => import('@/views/register/register.vue')
        },

        {
            path: '/resetPassword',
            name: 'resetPassword',
            meta: {
                title: "重置密码"
            },
            component: () => import('@/views/resetpassword/reset-password.vue')
        },


        {
            path: '/sysUser',
            name: 'sysUser',
            component: layout,
            redirect: '/sysUser',
            children: [
                {
                    path: '/sysUser',
                    name: 'sysUser',
                    meta: {
                        title: "用户管理"
                    },
                    component: () => import('@/views/sysuser/sys_user.vue'),
                }
            ]
        },

        {
            path: '/deptList',
            name: 'deptList',
            component: layout,
            redirect: '/deptList',
            children: [
                {
                    path: '/deptList',
                    name: 'deptList',
                    meta: {
                        title: "部门管理"
                    },
                    component: () => import('@/views/dept/dept_list.vue'),
                }
            ]
        },

        {
            path: '/roleList',
            name: 'roleList',
            component: layout,
            redirect: '/roleList',
            children: [
                {
                    path: '/roleList',
                    name: 'roleList',
                    meta: {
                        title: "角色管理"
                    },
                    component: () => import('@/views/role/role_list.vue'),
                }
            ]
        },

        {
            path: '/order',
            name: 'order',
            component: layout,
            redirect: '/order',
            children: [
                {
                    path: '/order',
                    name: 'order',
                    meta: {
                        title: "订单管理"
                    },
                    component: () => import('@/views/order/hotel_order.vue'),
                }
            ]
        },


        {
            path: '/sysLog',
            name: 'sysLog',
            component: layout,
            redirect: '/sysLog',
            children: [
                {
                    path: '/sysLog',
                    name: 'sysLog',
                    meta: {
                        title: "系统日志"
                    },
                    component: () => import('@/views/syslog/sys_log.vue'),
                }
            ]
        },

        {
            path: '/scenicArea',
            name: 'scenicArea',
            component: layout,
            redirect: '/scenicArea',
            children: [
                {
                    path: '/scenicArea',
                    name: 'scenicArea',
                    meta: {
                        title: "景点管理"
                    },
                    component: () => import('@/views/scenicarea/scenic_area.vue'),
                }
            ]
        },

        {
            path: '/tourRoute',
            name: 'tourRoute',
            component: layout,
            redirect: '/tourRoute',
            children: [
                {
                    path: '/tourRoute',
                    name: 'tourRoute',
                    meta: {
                        title: "旅游路线"
                    },
                    component: () => import('@/views/route/tour_route.vue'),
                }
            ]
        },

        {
            path: '/tourHotel',
            name: 'tourHotel',
            component: layout,
            redirect: '/tourHotel',
            children: [
                {
                    path: '/tourHotel',
                    name: 'tourHotel',
                    meta: {
                        title: "酒店管理"
                    },
                    component: () => import('@/views/hotel/tour_hotel.vue'),
                }
            ]
        },

        {
            path: '/travelStrategy',
            name: 'travelStrategy',
            component: layout,
            redirect: '/travelStrategy',
            children: [
                {
                    path: '/travelStrategy',
                    name: 'travelStrategy',
                    meta: {
                        title: "旅游攻略"
                    },
                    component: () => import('@/views/strategy/travel_strategy.vue'),
                }
            ]
        },

        {
            path: '/home',
            name: 'home',
            component: layout,
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'Home',
                    meta: {
                        title: "首页"
                    },
                    component: () => import('@/views/home/home.vue'),
                }
            ]
        },

    ]
;

export default routes;
